package create_pattern.builder_pattern;

/**
 * @author fly
 * @data 2022-04-12
 * 构建者模式：指挥类，负责构架产品
 */
public class PageController {

    public Page construct(PageBuilder pageBuilder) {
        Page page;
        pageBuilder.buildControlBar();
        pageBuilder.buildMenu();
        pageBuilder.buildPlaylist();
        pageBuilder.buildMainWindow();
        page = pageBuilder.createPage();
        return page;
    }
}